import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        configInfo: null
    },
    getters: {
        configInfo: state => state.configInfo
    },
    mutations: {
        SET_CONFIGINFO: (state, configInfo) => {
            state.configInfo = configInfo
        }

    },
    actions: {
        setConfigInfo({ commit }, configInfo) {
            commit('SET_CONFIGINFO', configInfo)
        }
    },
    modules: {}
})